import time
import numpy as np
from rvo.vector import Vector2


t1 = time.time()
for i in range(1000000):
    vec1_np = np.array([3., 4.])
    vec2_np = np.array([5., 6.])
    test1 = np.dot(vec1_np, vec2_np)
    test2 = vec1_np + vec2_np
    test3 = vec1_np - vec2_np
    test4 = 5 * vec2_np
t2 = time.time()

t3 = time.time()
for i in range(1000000):
    vec1_np = Vector2(3., 4.)
    vec2_np = Vector2(5., 6.)
    test1 = vec1_np @ vec2_np
    test2 = vec1_np + vec2_np
    test3 = vec1_np - vec2_np
    test4 = 5 * vec2_np
t4 = time.time()

print("array time: ", t2 - t1)
print("vector time: ", t4 - t3)


